
<div class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">用户详情:<span style="color: #0e90d2">$user.login_account</span></h3>

            </div>
            <div class="panel-body form-inline">
                <div class="modal-body form-horizontal">

                        <div  class="form-group col-sm-12" style="margin-top: 10px;" >
                            <label class="col-sm-2 control-label">会员头像：</label>
                            <div class="col-sm-8">
                                #if($user.head_img)
                                <img src="$user.head_img" style="width: 160px; height: 140px;" />
                                #else
                                 <img src="/newshop/assets/images/grzx_80.png" sstyle="width: 160px; height: 140px;" />

                                #end
                            </div>
                        </div>

                        <div  class="form-group col-sm-12" style="margin-top: 10px;">
                            <label class="col-sm-2 control-label">会员ID:</label>
                            <div class="col-sm-4">
                                <input type="text" name="teacher" class="form-control require" id="teacher_edit" value="$user.id" >
                            </div>
                            <label class="col-sm-2 control-label">昵称:</label>
                            <div class="col-sm-4">
                                #if($user.nick_name)
                                <input type="text" name="charge" class="form-control require" id="charge_edit"  value="$user.nick_name">
                                #else
                                <input type="text" name="charge" class="form-control require" id="charge_edit"  value="无">

                                #end
                            </div>
                        </div>

                        <div  class="form-group col-sm-12" style="margin-top: 10px;">
                            <label class="col-sm-2 control-label">手机号:</label>
                            <div class="col-sm-4">
                                <input type="text" name="teacher" class="form-control require" id="teacher_edit" value="$user.phone" >
                            </div>
                            <label class="col-sm-2 control-label">状态:</label>
                            <div class="col-sm-4">
                                #if($user.status == 0)
                                <input type="text" name="charge" class="form-control require" id="charge_edit"  value="禁用">
                                #else
                                <input type="text" name="charge" class="form-control require" id="charge_edit"  value="正常">
                                #end
                            </div>
                        </div>

                        <div  class="form-group col-sm-12" style="margin-top: 10px;">

                            <label class="col-sm-2 control-label">上级会员昵称:</label>
                            <div class="col-sm-4">
                                #if($parent && $parent.nick_name)
                                <input type="text" name="charge" class="form-control require" id="charge_edit"  value="$parent.nick_name">
                                #else

                                <input type="text" name="charge" class="form-control require" id="charge_edit"  value="无">

                                #end
                            </div>
                        </div>

                        <div  class="form-group col-sm-12" style="margin-top: 10px;">
                            <label class="col-sm-2 control-label">上级会员手机号:</label>
                            <div class="col-sm-4">

                                #if($parent && $parent.phone)

                                <input type="text" name="teacher" class="form-control require" id="teacher_edit" value="$parent.phone"/>
                                       #else

                                <input type="text" name="charge" class="form-control require" id="charge_edit"  value="无">

                                #end
                            </div>
                            <label class="col-sm-2 control-label">注册时间:</label>
                            <div class="col-sm-4">
                                <input type="text" name="charge" class="form-control require" id="charge_edit"  value="$user.create_time">
                            </div>
                        </div>

                    <div class="form-group col-sm-12" style="margin-top: 30px;">
                        <table class="table table-striped table-bordered" cellspacing="0" width="100%">
                            <thead>
                            <tr>
                                <th>下级会员数</th>
                                <th>营业额（元）</th>
                                <th>推广费</th>
                                <th>累计提现金额</th>
                                <th>总订单数量
                                    （已完成）</th>
                                <th>订单总金额</th>
                            </tr>
                            </thead>

                            <tbody>
                            <tr indexs="1" id="77">
                                <td>
                                    $child
                                </td>
                                <td>
                                    #if($userCount)
                                    $userCount.order_price_num
                                    #else
                                    0
                                    #end


                                </td>
                                <td>
                                    #if($userCount)
                                    $userCount.return_price_num
                                    #else
                                    0
                                    #end
                                </td>
                                <td>$cashAll</td>
                                <td>
                                    #if($userCount.order_num)
                                    $userCount.order_num
                                    #else
                                     0
                                    #end
                                </td>
                                <td>


                                    #if($userCount)
                                    $userCount.sale_price_num
                                    #else
                                    0
                                    #end
                                </td>
                            </tr>

                            </tbody>
                        </table>

                    </div>




                </div>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="gobackuser();">返回</button>
            </div>
        </div>
    </div>


</div>

<script >
    function gobackuser() {
        $('#main-content').load('/newshop/user/user.html');
    }
    
</script>
